//
//  NSString+LTLNSString.m
//  WeiBo
//
//  Created by Apple_Lzzy46 on 16/11/8.
//  Copyright © 2016年 LTL. All rights reserved.
//

#import "NSString+LTLNSString.h"

@implementation NSString (LTLNSString)
//文本大小
-(CGSize)sizeTextFont:(UIFont *) Font
{
    NSDictionary *dict = @{NSFontAttributeName:Font};
    //name文本大小
    CGSize nameSize = [self boundingRectWithSize:CGSizeMake(MAXFLOAT, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:dict context:nil].size;
    
    return nameSize;
}
@end
